using UnityEngine;

public class UI_InGame : MonoBehaviour
{
	[SerializeField]
	private RectTransform _RectBasePos_ItemUI_EnemyHP;

	[SerializeField]
	private RectTransform _RectBasePos_Tips;

	[Header("预制体")]
	[SerializeField]
	private ItemUI_EnemyHP _ItemUI_EnemyHP_Prefab;

	[SerializeField]
	private ItemUI_BossHP _ItemUI_BossHP_Prefab;

	[SerializeField]
	private ItemUI_存档点 _ItemUI_存档点;

	[SerializeField]
	private ItemUI_打坐点 _ItemUI_打坐点;

	[Header("面板")]
	[SerializeField]
	private UI_InGame_Main _InGame_Main;

	[SerializeField]
	private UI_InGame_Pause _InGame_Pause;

	[SerializeField]
	private UI_InGame_得胜 _UI_InGame_得胜;

	[SerializeField]
	private UI_InGame_教程 _UI_InGame_教程;

	[SerializeField]
	private UI_InGame_Tips _UI_InGame_Tips;

	[SerializeField]
	private UI_InGame_章节提示 _UI_InGame_章节提示;

	public CanvasGroup _CG_遮罩;

	public CanvasGroup _CG;

	public void F_显示()
	{
		_InGame_Main.F_显示();
		_CG.alpha = 1f;
		_CG.blocksRaycasts = true;
		_UI_InGame_章节提示.F_进入游戏();
	}

	public void F_隐藏()
	{
		_CG.alpha = 0f;
		_CG.blocksRaycasts = false;
	}

	public void F_显示定身术()
	{
		_InGame_Main.F_显示定身术();
	}

	public void F_开始教程(Enum_教程类型 教程类型)
	{
		_UI_InGame_教程.F_开始教程(教程类型);
	}

	public void F_显示Tips(string str)
	{
		_UI_InGame_Tips.F_显示Tips(str);
	}

	public void F_隐藏Tips()
	{
		_UI_InGame_Tips.F_隐藏Tips();
	}

	public ItemUI_EnemyHP F_Get_ItemUI_EnemyHP()
	{
		return Object.Instantiate(_ItemUI_EnemyHP_Prefab, _RectBasePos_ItemUI_EnemyHP).F_Init();
	}

	public ItemUI_BossHP F_Get_ItemUI_BossHP()
	{
		return Object.Instantiate(_ItemUI_BossHP_Prefab, _RectBasePos_ItemUI_EnemyHP).F_Init();
	}

	public ItemUI_存档点 F_Get_ItemUI_存档点()
	{
		return Object.Instantiate(_ItemUI_存档点, _RectBasePos_Tips).F_Init();
	}

	public ItemUI_打坐点 F_Get_ItemUI_打坐点()
	{
		return Object.Instantiate(_ItemUI_打坐点, _RectBasePos_Tips).F_Init();
	}

	public void F_注册玩家时绑定事件(PlayerController pc)
	{
		_InGame_Main.F_注册玩家时绑定事件(pc);
	}

	public void F_显示得胜(string name)
	{
		_UI_InGame_得胜.F_显示得胜(name);
	}

	public void F_UI_定身术CD(float time)
	{
		_InGame_Main.F_UI_定身术CD(time);
	}

	public void F_暂停游戏()
	{
		_InGame_Pause.F_显示();
		_InGame_Main.F_暂停游戏();
	}

	public void F_继续游戏()
	{
		_InGame_Pause.F_隐藏();
		_InGame_Main.F_继续游戏();
	}
}
